package com.clf.springCloudTest.service.impl;

import com.clf.springCloudTest.dao.CountryDao;
import com.clf.springCloudTest.service.CountryService;
import com.clf.test.Country;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: chenglongfei
 * @date: 2022/7/14
 * @Description CountryServiceImpl
 */
@Service
public class CountryServiceImpl implements CountryService {

    @Autowired
    private CountryDao countryDao;

    @Override
    public Country getCountryByCountryId(int countryId) {
        return countryDao.getCountryByCountryId(countryId);
    }

    @Override
    public Country getCountryByCountryName(String countryName) {
        return countryDao.getCountryByCountryName(countryName);
    }
}
